<div style="text-align: center;"><span
 style="font-weight: bold;"><%=@business_title%></span><br>
<span style="font-weight: bold;">BALANCE GENERAL<br>
Mes <%=@period.to_i()*@accounting_cycle.to_i%> del d&iacute;a <%=@foundation_date.day()%><br>
(CIFRAS EN PESOS)<br>
<br>
</span><br>
<table style="text-align: left; width: 100%;" border="0"
 cellpadding="2" cellspacing="2">
  <tbody>
    <tr>
      <td style="font-weight: bold;" colspan="1"
 rowspan="5">ACTIVOS<br>
      <table style="text-align: left; width: 100%;" border="0"
 cellpadding="2" cellspacing="2">
        <tbody>
            <% for asset in @total[:assets]%>
          <tr>
            <td>
            <ul>
              <li><span style="font-style: italic;"><%=asset.name%></span></li>
            </ul>
            </td>
            <td><%=number_to_currency(asset.amount.to_f)%></td>
          </tr>
          <%end%>
        </tbody>
      </table>
      <br>
      <ul style="font-style: italic;">
      </ul>
      </td>
      <td style="font-weight: bold;">PASIVOS<br>
      <span style="font-style: italic;"></span>
      <table style="text-align: left; width: 100%;" border="0"
 cellpadding="2" cellspacing="2">
        <tbody>
            <%for liabilities in @total[:liabilities]%>
          <tr>
            <td>
            <ul>
              <li><span style="font-style: italic;"><%=liabilities.name%></span></li>
            </ul>
            </td>
            <td><%=number_to_currency(liabilities.amount.to_f)%></td>
          </tr>
          <%end%>
        </tbody>
      </table>
      <span style="font-style: italic;"></span></td>
    </tr>
    <tr style="font-weight: bold;">
      <td>
      <table style="text-align: left; width: 100%;" border="0"
 cellpadding="2" cellspacing="2">
        <tbody>
          <tr>
            <td><span style="font-weight: bold;">TOTAL
PASIVO</span></td>
            <td><%=number_to_currency(@total[:total_liabilities])%></td>
          </tr>
        </tbody>
      </table>
      </td>
    </tr>
    <tr style="font-weight: bold;">
      <td>PATRIMONIO<br>
      <table style="text-align: left; width: 100%;" border="0"
 cellpadding="2" cellspacing="2">
        <tbody>
        <%for wealth2 in @total[:wealth]%>
          <tr>
            <td>
            <ul>
              <li><span style="font-style: italic;"><%=wealth2.name%></span></li>
            </ul>
            </td>
            <td><%=number_to_currency(wealth2.amount.to_f)%></td>
          </tr>
          <%end%>
        </tbody>
      </table>
      </td>
    </tr>
    <tr style="font-weight: bold;">
      <td>
      <table style="text-align: left; width: 100%;" border="0"
 cellpadding="2" cellspacing="2">
        <tbody>
          <tr>
            <td><span style="font-weight: bold;">TOTAL
PATRIMONIO</span></td>
            <td><%=number_to_currency(@total[:total_wealth])%></td>
          </tr>
        </tbody>
      </table>
      </td>
    </tr>
    <tr style="font-weight: bold;">
      <td colspan="1" rowspan="1"><br>
      </td>
    </tr>
    <tr>
      <td>
      <table style="text-align: left; width: 100%;" border="0"
 cellpadding="2" cellspacing="2">
        <tbody>
          <tr>
            <td><span style="font-weight: bold;">TOTAL
ACTIVO</span></td>
            <td><%=number_to_currency(@total[:total_assets])%></td>
          </tr>
        </tbody>
      </table>
      </td>
      <td>
      <table style="text-align: left; width: 100%;" border="0"
 cellpadding="2" cellspacing="2">
        <tbody>
          <tr>
            <td><span style="font-weight: bold;">TOTAL
PASIVO + PATRIMONIO</span></td>
            <td><%=number_to_currency(@total[:total_wealth]+@total[:total_liabilities])%></td>
          </tr> 
        </tbody>
      </table>
      </td>
    </tr>
    <tr>
    <td><%=link_to 'Volver', :controller=>'periods'  %></td>
    </tr>
  </tbody>
</table>
</div>
